package com.poker.entity;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName ActivitySchedule
 * @Description TODO
 * @Author duyuanyuan
 * @Date 2019/3/19 16:24
 * @Version 1.0
 **/
@Entity
@Data
@Table(name = "activity_schedule")
public class ActivitySchedule implements Serializable {

    private static final long serialVersionUID = 4237814171205990097L;
    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid",strategy = "uuid")
    private String id;//活动日程id

    @Column(name = "activity_id")
    private String activityId;//活动id

    @Column(name = "activity_name")
    private String activityName;//活动名称

    @Column(name = "schedule_name")
    private String scheduleName;//赛事名称

    @Column(name = "begin_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginTime;//比赛时间

    @Column(name = "game_address")
    private String address;

    @Column(name = "activitySchedule_istop")
    private Boolean isTop;//是否置顶

    @Column(name = "activitySchedule_status")
    private Boolean status;//是否展示

    @Column(name = "create_date")
    private Date createDate;//创建时间

    @Column(name = "classify")
    private Integer classify; // 0、德州，1、双升
}
